latest code from paul