move dimensions in to variables