simplified logic in front-end for satisfies major