remove unnecessary overhead for callbacks