did stuff for output, no idea if it works
lololoops