added parsing of dimensions