added a couple functions