renamed postEntry to addTree