added output to see whats going wrong
added output to see whats going wrong