vishal - code change for avoid empty key generation