made minor revisions on the parameters