making types an array