fixing mobile fromLeft variable initialization