changed the star-value calculation equation because of bug