invenetory rendering and working properly