added a new function for testing