removed unused function that was causing crash