this is the code for the first branch