throw declaration for sync