wrapped amelie into anonymous fn