right checks at the right time
typo fixed