going to change back to chars, and move switch to after declaration