added functions in Namenode