fixed scale
changed dim3 to have 1 for z component