refactored func names to show different methods to do the check