added reset functions