sizeof was wrong