added debug code for movement data