added print statement and other things. it works