empty function only accept variable and fixed it