started visibility computation part