changing callback to reflect boolean value