remove hasParams function