added read file function