setting the correct initial values on initialization