preventing overwriting pervious values