offset option accept Function