hw part 3 - modified checks.