adding callback with boolean value