add moveToPosition method