reversing to_a result so it is the same as input