declared numpy class before a few function calls