prototype for enter