refactor del app