seems like it works normally

though, refactoring is still needed