rename getTypes to getParamTypes