remove unused dimensions code