remove reduntant conversion
remove redundant vector copying