updates type classes