reviewer suggested changes, using implicit java conversions