change output to (Int,Int)