changed magic numbers to list