fixed sizes also added undef direction