made store into an operator and fixed switch constants