following Allan's suggestion