server side code for starred functionality