refactoring: use melt to avoid duplications