update proposal logic