adapted inline docs