use dynamic value, not #define for bar-space
removed unnecessary function declarations