boundry collision issue solved