changed last to be last check