added new fxn vecrep and modified another