init bug. renamed vars in case of naming conflict