finished functions equal of a function maybe not working well with white spaces