remove unused fns
handling counts