uninitialized error fixed