using the stack instead of the heap for the avgg float variable