adding clear value function