both keys are writed