unbook in same function