reducing scalar function references