fixed incorrect default constructor
removed unnecessary code