bugfix

names should be defined before you reference them, usually.