change task key to id