works (more or less)
removed comments