update Code

some missing function now added