revised to hand int