tweaking and integration