added separate branch checking to see overwriting
changed once more