some clean coding