attribute error exception added