oops, wrong function for applying to vector