pos ++ instead of pos += 1