remove nedless function
karma mode shouldnt be global