fix not passing argument to function