bugs fixed at memorization