added 'visible' test