unnecessary code to have a constructor like this