Pyjama optimization and expansion by Vancy