resolve problem with method observe