fixed magic numbers in scaffold model