apply -> call where applicable.  Add return type to pie function