added resets and structure
added resets and structure