work on statics and complex structs