add compact mode