optional parameter followed by non-optional. this should be non-optional or the two should be swapped