updated traditional.cpp