object oriented item class and logic of render process refactored