changed states to cammeCased for PSR2 compliance