calc mostly done