remove redundant error check