partial work
removed faulty code line