why is that function necessary? Can you please add a comment? THX