resolved error with reset