type 2 causes