checking safe rule