adding the planning code for submission