modified to adhere to PEP8 better