Solved func4 problem