removed double cast