inlined some equations