adding function to vallidate placements