final code motion