improve topspace attribute in top type