added in sync and add functions