added reset functionallity