using const references as input parameter where possible.