remove garbage from output