added sunset detector