added inv_pos