rm mezzanine sample code