adds return statement for parseRest