implemented update
implemented id handling