added clear and display functions