changes for Erms checking