set functions as static or add declarations