got callbacks working, renamed variables to not overlap