using id to save logs