trim redundant time and space information