added int to block width calculation