add save values functionality
solving merge