code not functional or elegant