refactored turnary into ||