edit visibility function for score