Not exactly related to only this pull, but shouldnt it be data = 0 since you add one to it right after?