flatten...

Need to figure out data types stuff