removed redundant type cast