formator code