two errors fixed