changed redundant casting