fixed bug in eq2Sun function