fix for taking problem