operator in case stmt
better structure