add check for key not existing