add free node method