pruning unused statement