change method of showing object