use key if present in write