fix a bug adding whites in inner code