removed unneccesary error and warnings
constant propagation for structs and arrays