added getFunction