adding optimization when updating cab location