method names changes and refactored a bit
changed way in which carriages are detached