added constant for offset function