added string to int func