Let Ω⊂Rn be a bounded open set. Given $2\leq m\leq
n,weconstructaconvexfunction\phi :\Omega\to Rwhosegradientf= \nabla \phiisaHo¨ldercontinuoushomeomorphism,fistheidentityon\partial \Omega,thederivativeD fhasrankm-1a.e. in\OmegaandD
fisintheweakL^{m}spaceL^{m,w}$. The proof is based on convex
integration and staircase laminates.