dynamically input locations