add attribute of format