made sure it checked for nil and use magic hour