changed nightlight to use pulse