fix for large dimensions