debugging motion