moved helper functions to parse.h