setup for editing. Editing breaks currently