pass const ref and fix slash