Code working way is Slow