debug. add functionality.