added level object
move state finalized
minor changes