reverse and defined parameters now working