add support for offset
LAST like function add