error callback funtions
fixed conflict