removed double assignments

removed double assignments for `$data` array.
Sorry you missunderstood ;)
Line 131 to 134 and Line 137 to 140 are the same.
I removed 137 to 140