add dimension method