needs to be single-argument to be accessible from view_def