removing redundant checking