clear up code