added conditional background