moved struct to top