added clone method for all the components