working on client side prediction