design and level logic