pat advance 1060 added, use char not double