starting quad collisions framework
minor efficiency fix