fixed storing of factor