cleaned up CS rules