include extend function