I have this block of code (simplified), but i dont known if i doing it the wrong way or is something iam misunderstanding.