changed a n00bish typeof error in main