get rid of tuple allocations for features