changes to prevent issue with edit dimension