fixed collision detection issue, also posprocessing nearly done, need to thread it