removed unused mode hook