(also mihaly and benja:) remove tyass assumptions for function spaces as well