fixed numpy array creation