now it returns a dict with params