wrote keyword method for token