the utils for the reuse of the code