2 new functions so to be easier to move them around