fix argument types for callback