fixing improper params mapping