add const to handle more options