made accept() to return the accepted keyword