add function was published recently and fix space into code