cleaning up compiler warning about the ref type param