minor changes. check texplore implementation