removed kill loop