remove callable from main, add docstring