removed faulty code