fix hard-coded dimensions