reset working in all cases