added code for security