added flash master RR's code