added diamond and output window