added initialized variable + message handling