added const to bool