refactor the code with prepare statment
remove unused file
rearrange the error message
add source view from problem summary