fixed errors in simbaltrees_topy fxn