added boolean function and updated number function with loop