copied down from class