decided to rewrite code will be broken for now