fix visibility algorithm