fixed a bug on interface sides and one on recording the dimension from args