building case to retain custody