removed reference to ddply functions
removed reference to ddply