error with expand