why is this defined in the middle of the file?