cleaning code on reservation