fixed formatting. removed Node-centric code.