added sun func