fix callback declaration