this is the working formatted version with option 3 of the CBH project