delete extra spaces and add const