changed number to be a real instead of int