improved stars, functions for flash