ego calcs, but memory errors
more loc but better mem management
normalized results