added conditional example