changed stub function