repared incorrect dims calc