removed debug logs and addded caption