BUG: calling function with right argument