correcting warnings