removed redundant warnings