more numpification. Keeps getting slower and slower.