fix argument passing