removed pass by reference for defaults