remove almost working, might have error in keyExists