states and types getting correctly. Working on post