modified DS and security