code ready so far but values that processing sends are wrong