changed condition in "parse" function