changing the writing convention to make it working with the latest version of antigen