added first version of sunset detection