added func-defs to rainwise