added >> overload but not working as expected