removed redundant zero check