declare star function and add map of Star function