added some extra functions to make it easier