fixed bug in experimental code