trimming unnecessary parts for debugging