add method toString into visualtype