working on cleaning up ch 27