adjusted to run on MacBookPro