raise error on wrong arguments