removed plyr dependency