adding security methods