remove extraneous function
adding docstring
minor delint