pipeline works; need to be cleaned up