change error func again