type formatting