added getters for id and direction