add function to inline variables