work on new parse function