added computesstyle