make sure to set frame number