removed main method from Error