bunch of stuff for edit