converted to numpy to get multidimenional array