working on object intersection detection