adding function for set initial values