changed fn name to getVisibleItems