added first version of location predictor