fix resistance method and output