minor changes to dirty mapper