fixed storing values