implemented logic to conditionally add loc to room during creation