cleaning up code for arrows