switch from string to integer

should be integer. String breaks and throws error