tried to fix problem with fetching id but not fixed yet