improved default value based on hook as it will only execute on insert