fixed order of checks