tried adding type attribute