multiple id's error solved - made a class instead