add ids method