Study on UV and IR laser interaction with metal and dielectrics