collision detection routines at initial stage