remove debug line and unused caption