updated code for lint syntax requirements