replaced missed integer literal with provided dimension variable