updated to remove the n calc