improved template implementation:width usage