function_coin compartment