fixing the damn sidemap function