fix problem with method