solving warnings