changed last path helper