fixed errors done by inefficient jcbages