#1 fixed undefined parameters error