replace atoi with stoiwq