use offset directly when direction is bottom