edit beginning and end, middle is WIP