correct params handling