print out invalid reference message