initialization working correctly