made a change to loader.py to make it more readable.