cleaned head, added noselects
cleaned up, removed junk, proper anti-selection code