getting errors of necessity