adding return variables for debugging