replace assert with Objects.... for argument checking