worked with libs to get rid of warnings of shadows