fix according to @jcsahnwaldt suggestion