changed the parameters of the constructor