updated for mysql offset