fixing value copy