remove redundant checking