removed bad code updated arduino code