added older code to help fix camera