fixed up the constructor methods