made an all() method