added 2nd function to make testing easier