threshold error checking, portfolio perenctage error checking