fixes declaration to works with 24