fill the correct slot