fixed getting highest existing id + removed var