correct str/int conversion