Consider case when code has code attribute