fixes #1 - implementation of all()