remove declared but not used variable $list
refactor message,error,stop methods