If the frame is not the exact one, for example the i535 frame will only work with the i535 motherboard. The motherboards are slightly different but can still fir i would check this first(see below)
https://www.gazelle.com/thehorn/wp-content/uploads/2013/05/IMAG0098-e1370597945201-1024x646.jpg
for example this one is the T999. You find this by taking the model number and remove the first 3 letter and the dash.