added limits to relations to avoid memory errors
updated editable placement