added star, unstar, returnJSON functions