grabbings ids from file