copy all code