changed q['id'] from string to int format everywhe