generalize AmoutPie's methods