made changeOffSet func