complete missing code