added closest target to state rep. looks ok