indices buffer
 change visible check
 add check