maybe this safe guard will work better