tips function.