change arrays to hash for placements