added the updated state
changed the files