Can you please explain how those two functions work? What they do?