fixed domain error