Added null pruning
added hashtable, but it is bugged