trimming empty imports