remove observer at the end