prepare space for edit