moved helper function to special folder