fixed the function call at start