working on the avatar closing