use case instead of if when picking state