cleaning up count and signal call