Camera Position undetectable?

    function update(){

print(Camera.main.transform.position.x);

}

Nothing gets printed. I've also tried transform.position.x and that doesn't print anything either. can anyone duplicate this problem? I also have a lateupdate function, could that cause a problem?

the u in Update needs to be uppercase.