parse utility method moved to a separate class