minor: modify inferface slightly