safety patterns