defensive programming for sync function data structures