switching from string to integer