update custom functions