new helpers for stars and for json