working on uq cluster code, uq hmm code