changed the parameters to correspond to what is requested