allow passing of a max scalar