a small code cleanup