smooth motion algorithm test