Instead of posting the whole code try giving the error descriptions