remove unused logic.