read as array