trying to fix intersection types - failed