working on add functionality, not working yet