worked on tlm - fixed rm bug