updated anonymous functionality