adding and formatting material