refactoring -- uses suffix condition