warnings code fix