clean up star function