changed declaration to bool