optical detector: adding light history