delete redundant functions, add test cases for other dimensions