thread for frame