this could be a simple function.