implementing enter