fixed errors in ntjohn