changed tables for lend function to be in correct table