updating CSV implementation