forgot to check for which objecst were visible