As far as I can see there isn't any connection between the two statement but posting the code should help us to know the things better