improved star-position calculation