allow null value for offset