updated my enter update exit function