copy and assign fixes for value