end preparations for security