added coment on magic number 34 which is sqrroot of 1000