updated level code