// small code refacto