fix for uncompilable function