changed type to bool