added a few funtions