how would you translate this function with Effect - Effect Community