function bounce now receive an object of parameters

first patch requested on #13