bits algo added