use correct length of long state