checking in cloud code