handling rare case where developer passes wrong param type for