New function that take care of changeing the values