test editor func, work in progress