main modified for places