basic core of it.  removed loops / if functions for now