refactor dimensions