use case instead of if