remove numpy dependency from input array