fixed the implementation of xinter