successfully tested culling algorithm