correct code order