last on logic