cleaned up arrow eating code