Title: Spin dependent transport in structured magnetic layers