fix param passing