get weights calculating under edge circumstances
get target grade working under edge circumstances