made some changes to frontEnd.cpp