io works with doubles properly