rewritten functions to parse likes