kinda slow but it works, also no fun danny comenting and output :(\n