adding tree repr
remove unused code