added a few functions