fixed bug for display method2