so I guess this code should work and I should look for my problem in somewhere else.