works both, didn't write this piece of code. This is how it is in master