fixed createRoutine