fix for single column, now values may be matrix or vector