remove unnecessary add-type