moved callback data to vars