adding ability to convert to numpy array