removed unused stuff and removed preview from completion