how to write store policies