add constants and rewrite daylight with brute force