added security functions