added next/last motion funcs