tested now the new parameter and added a few outputs