was forgetting to dereference a boolean pointer