added reset and break