compute features