removed caption if it doesnt exist