moving up and down heirarchy implemented