remove erroneous code