states implemented

states implemented