take out function