fixed buoy in danger function