when key=nil  return block