removed unused var
enhanced program selection in table