-pedantic correected, still incorrect code