re arranged codes