delete and default function