problem with empty end solved.