cleaned up inchworm script