added basic function to parser