added syntax for calculating width