in reply to Expanding a variable

Thanks everyone i've fixed it now. Will stick to three parameter version in future.