switch to use define to support membrane