removed flag check method