made all calls to numpy consistent