correcting parameters order