update the flot code
merged