made movement work again (changed variable names)