adding the function registration for the rain command