missing code, corrections