update flower logic