added functions to get copy op