initial testable version of Ed's approach