begining of particule coding