resolved all the errors caused by cp command