change valcone from mapply to vectorize