reduced number of warnings to 2