changed editor logic and error statments lol