removed setmethod lines because they were causing problems