initialize array to 0, removed some magic numbers and now only use gauss when asked for gauss