added id property to parser function