updated code, changed SDN pin