create a star function