may be it is better to introduce new local variable =1024 ?