fixed errors; 3 pending