changed to const ref, for BOOL* as it is a pointer i'll leave as is.