update custom variables