updated error in any_to_bin