try to comment out frame switching to avoid error