Element cells api and structure optimization