adding check for typematch, if type dont match dont increment counter for args