adding new method to copy values and conditional