checks both sam flags now