change int value to a bool for should_close