new storing logic