changed array number from 500 to 300
changed floats to integers