simple implementation of node