added conditional

added conditional