i think this is causing my crash