editing last condition