code for marpy