titles must be an array