update function names to PEP8 convention