delete registers logic added